package edu.arizona.sista.learn.activity.model.args;

import java.util.Arrays;

import edu.arizona.sista.learn.activity.model.Bindings;


public class PredObject extends PredLocation{

	public PredObject(String variableName, String value, String... cannotEqual) {
		super(variableName, value, cannotEqual);
		_type = "object";
	}
	
	public PredObject(String extendedVariableName, String value) {
		super(extendedVariableName, value);
		_type = "object";
	}
	
	@Override
	public Bindings getValidBinding(PredArg predArg, Bindings currentBindings){
		return predArg instanceof PredObject ? super.getValidBinding(predArg, currentBindings) : null;
	}
	
	public PredObject copy(){
		return new PredObject(_variableName, _boundValue, Arrays.copyOf(_cannotEqual,_cannotEqual.length));
	}
	
}